ARM: VGIC: Adjust domain_max_vcpus() to be VGIC specific
authorAndre Przywara <andre.przywara@linaro.org>
Fri, 9 Mar 2018 15:11:23 +0000 (15:11 +0000)
committerJulien Grall <julien.grall@arm.com>
Mon, 12 Mar 2018 11:42:40 +0000 (11:42 +0000)
commit3bb81108e920625af38d5e31caa985654dca2ba8
treed648bef250b95a3dcaa38304fd497f9df3bed823
parent37db0cc6e33ce613cfa5e817e3142709d39e92c3
ARM: VGIC: Adjust domain_max_vcpus() to be VGIC specific

domain_max_vcpus(), which is used by generic Xen code, returns the
maximum number of VCPUs for a domain, which on ARM is mostly limited by
the VGIC model emulated (a (v)GICv2 can only handle 8 CPUs).
Our current implementation lives in arch/arm/domain.c, but reaches into
VGIC internal data structures.
Move the actual functionality into vgic.c, and provide a shim in
domain.h, to keep this VGIC internal.

Signed-off-by: Andre Przywara <andre.przywara@linaro.org>
Reviewed-by: Julien Grall <julien.grall@arm.com>
xen/arch/arm/domain.c
xen/arch/arm/vgic.c
xen/include/asm-arm/domain.h
xen/include/asm-arm/vgic.h